package cn.usian.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @TODO:
 * @Author:baimu
 * @Date:2024 06 05 15 57
 **/
@SpringBootApplication
@MapperScan("cn.usian.order.mapper")
@EnableFeignClients
public class OrderApp {


    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
    public static void main(String[] args) {
        System.out.println("启动成功");
        SpringApplication.run(OrderApp.class);
    }
}
